import { PluggableMap } from "./PluggableMap";
import { CanvasMapRenderer } from "./renderer/canvas/Map";
import { CanvasTileLayerRenderer } from "./renderer/canvas/TileLayer";

interface MapOption {}
export class Map extends PluggableMap {
  constructor(opts: MapOption) {
    super(opts);
  }

  public createRenderer() {
    const renderer = new CanvasMapRenderer(this);
    renderer.registerLayerRenderers([CanvasTileLayerRenderer]);
    return renderer;
  }
}
